<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- **********************************************************************************************************************************************************
MAIN SIDEBAR MENU
*********************************************************************************************************************************************************** -->
<!--sidebar start-->
<aside>
    <div id="sidebar" class="nav-collapse">
        <!-- sidebar menu start-->
        <ul class="sidebar-menu" id="nav-accordion">

            <p class="centered">
                <%--<a href="profile.html"><img src="${ctx}/assets/img/ui-sam.jpg" class="img-circle" width="60"></a>--%>
                <img src="${ctx}/assets/img/ui-sam.jpg" class="img-circle" width="60">
            </p>
            <h5 class="centered">
                ${loginUser.realName}
            </h5>
            <li class="sub-menu">
                <a href="javascript:;">
                    <i class="fa fa-cogs"></i>
                    <span>系统管理</span>
                </a>
                <ul class="sub">
                    <c:if test="${loginUser.level <= 2}">
                        <li><a href="javascript:jumpMenu('${ctx}/sysuser/page')">系统用户管理</a></li>
                    </c:if>
                    <li><a href="javascript:jumpMenu('${ctx}/systemLog/page')">系统操作日志</a></li>
                    <%--<li><a href="javascript:jumpMenu('${ctx}/recommend/list')">内容标签</a></li>--%>
                </ul>
            </li>
            <%--<li class="sub-menu">
                <a href="javascript:;">
                    <i class="fa fa-reorder"></i>
                    <span>信息流管理</span>
                </a>
                <ul class="sub">
                    <li><a href="javascript:jumpMenu('${ctx}/sources/list')">内容管理</a></li>
                    <li><a href="javascript:jumpMenu('${ctx}/siteSources/list')">站点源管理</a></li>
                    <li><a href="javascript:jumpMenu('${ctx}/sensitivewords/list')">敏感词管理</a></li>
                </ul>
            </li>--%>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/tblpage/page')">
                    <i class="fa fa-reorder"></i>
                    <span>页面管理</span>
                </a>
                <%--<ul class="sub">
                    <li><a  href="javascript:jumpMenu('${ctx}/adminsysuser/list')">用户管理</a></li>
                    <li><a  href="javascript:jumpMenu('${ctx}/systemlog/list')">操作日志</a></li>
                    <li><a  href="javascript:jumpMenu('${ctx}/recommend/list')">内容标签</a></li>
                </ul>--%>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/navigation/page')">
                    <i class="fa fa-reorder"></i>
                    <span>App底部导航管理</span>
                </a>
                <%--<ul class="sub">
                    <li><a  href="javascript:jumpMenu('${ctx}/adminsysuser/list')">用户管理</a></li>
                    <li><a  href="javascript:jumpMenu('${ctx}/systemlog/list')">操作日志</a></li>
                    <li><a  href="javascript:jumpMenu('${ctx}/recommend/list')">内容标签</a></li>
                </ul>--%>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/videodistribute/page')">
                    <i class="fa fa-reorder"></i>
                    <span>影片分布查询</span>
                </a>
                <%--<ul class="sub">
                    <li><a  href="javascript:jumpMenu('${ctx}/adminsysuser/list')">用户管理</a></li>
                    <li><a  href="javascript:jumpMenu('${ctx}/systemlog/list')">操作日志</a></li>
                    <li><a  href="javascript:jumpMenu('${ctx}/recommend/list')">内容标签</a></li>
                </ul>--%>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/tbltab/page')">
                    <i class="fa fa-reorder"></i>
                    <span>推荐分类管理</span>
                </a>
                <ul class="sub">
                    <c:forEach items="${products}" var="product">
                        <li><a href="javascript:jumpMenu('${ctx}/tbltab/page?enabledPro=${product.proNum}')">${product.name}</a></li>
                    </c:forEach>
                </ul>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/tblpage/page')">
                    <i class="fa fa-reorder"></i>
                    <span>推荐管理</span>
                </a>
                <ul class="sub">
                    <c:forEach items="${products}" var="product">
                        <li><a href="javascript:jumpMenu('${ctx}/tblrecommend/page?enabledPro=${product.proNum}')">${product.name}</a></li>
                    </c:forEach>
                </ul>
            </li>
            <li class="sub-menu">
                <a href="#">
                    <i class="fa fa-reorder"></i>
                    <span>专题内容管理</span>
                </a>
                <ul class="sub">
                    <li><a href="javascript:jumpMenu('${ctx}/tblthemeContent/page')">专题管理</a></li>
                    <c:forEach items="${products}" var="product">
                        <li><a href="javascript:jumpMenu('${ctx}/lightningvideotheme/page?enabledPro=${product.proNum}')">${product.name}</a></li>
                    </c:forEach>
                </ul>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/rank/page')">
                    <i class="fa fa-reorder"></i>
                    <span>排行榜管理</span>
                </a>
                <ul class="sub">
                    <c:forEach items="${products}" var="product">
                        <li><a href="javascript:jumpMenu('${ctx}/rank/page?enabledPro=${product.proNum}')">${product.name}</a></li>
                    </c:forEach>
                </ul>
            </li>
            <li class="sub-menu">
                <a href="#">
                    <i class="fa fa-reorder"></i>
                    <span>频道筛选管理</span>
                </a>
                <ul class="sub">
                    <c:forEach items="${products}" var="product">
                        <li><a href="javascript:jumpMenu('${ctx}/channeldrawer/page?enabledPro=${product.proNum}')">${product.name}</a></li>
                    </c:forEach>
                </ul>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/appUpgrade/page')">
                    <i class="fa fa-reorder"></i>
                    <span>App版本管理</span>
                </a>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/appCheckSocket/page')">
                    <i class="fa fa-reorder"></i>
                    <span>审核数据管理</span>
                </a>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/siteSuspend/page')">
                    <i class="fa fa-reorder"></i>
                    <span>站点源上下线</span>
                </a>
                <ul class="sub">
                    <li><a href="javascript:jumpMenu('${ctx}/siteSuspend/page')">站点源上下线管理</a></li>
                    <li><a href="javascript:jumpMenu('${ctx}/sitescreen/page');">投屏下线管理</a></li>
                </ul>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/startPicture/page')">
                    <i class="fa fa-reorder"></i>
                    <span>今日影视广告图</span>
                </a>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/videoOff/page')">
                    <i class="fa fa-reorder"></i>
                    <span>影片下线管理</span>
                </a>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/downloadOff/page')">
                    <i class="fa fa-reorder"></i>
                    <span>影片下载管理</span>
                </a>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/tblLiteApp/page')">
                    <i class="fa fa-reorder"></i>
                    <span>SDK播放控制</span>
                </a>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/tblSourceDownload/page')">
                    <i class="fa fa-reorder"></i>
                    <span>片源下载控制</span>
                </a>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/tblViewer/page')">
                    <i class="fa fa-reorder"></i>
                    <span>用户管理</span>
                </a>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/tblShare/page')">
                    <i class="fa fa-reorder"></i>
                    <span>分享页管理</span>
                </a>
                <ul class="sub">
                    <c:forEach items="${products}" var="product">
                        <li><a href="javascript:jumpMenu('${ctx}/tblShare/page?enabledPro=${product.proNum}')">${product.name}</a></li>
                    </c:forEach>
                </ul>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/tblHotDownload/page')">
                    <i class="fa fa-reorder"></i>
                    <span>热门下载管理</span>
                </a>
            </li>
            <li class="sub-menu">
                <a href="javascript:;">
                    <i class="fa fa-reorder"></i>
                    <span>站点源播放顺序调整</span>
                </a>
                <ul class="sub">
                    <li><a href="javascript:jumpMenu('${ctx}/cloudmarkSortable/page')">云盘源</a></li>
                    <li><a href="javascript:jumpMenu('${ctx}/sitemarksortable/page')">第三方源</a></li>
                </ul>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/tblLetvControl/page')">
                    <i class="fa fa-reorder"></i>
                    <span>乐视源播放控制</span>
                </a>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/appShare/page')">
                    <i class="fa fa-reorder"></i>
                    <span>应用分享管理</span>
                </a>
            </li>
            <li class="sub-menu">
                <a href="javascript:jumpMenu('${ctx}/supload/page')">
                    <i class="fa fa-reorder"></i>
                    <span>源站文件上传</span>
                </a>
            </li>
            <%--<li class="sub-menu">
                <a href="javascript:;">
                    <i class="fa fa-reorder"></i>
                    <span>CDN调度管理</span>
                </a>
                <ul class="sub">
                    <li><a href="javascript:jumpMenu('${ctx}/cdn/page')">CDN管理</a></li>
                    <li><a href="javascript:jumpMenu('${ctx}/cdnmanage/page')">CDN调度控制</a></li>
                </ul>
            </li>--%>
            <li class="sub-menu">
                <a href="javascript:syncPro('${ctx}/menu/cms/sync')">
                    <i class="fa fa-reorder"></i>
                    <span style="color: yellow">*同步CMS剧集(角标)*</span>
                </a>
            </li>
        </ul>
        <!-- sidebar menu end-->
    </div>
</aside>
<script type="text/javascript">
    function syncPro() {
        var package = new AJAXPacket("${ctx}/menu/cms/sync");
        core.ajax.sendPacket(package, function (response) {
            if (response.data.success) {
                alertMsg.correct("成功！");
            } else {
                alertMsg.error(response.data.errMsg);
            }
        });
        package = null;
    }
</script>
<!--sidebar end-->